package com.vcolco.test;

import java.util.Random;

public enum RandomNum {
    instance;
    private Random random = null;


    public Random getRandom(){
        if (null == random){
            random = new Random();
        }
        return random;
    }

    public int getInt(){
        getRandom();
        return random.nextInt(1000);
    }
}
